/*
var arr=['A','B','C']
console.log(arr.shift());
console.log(arr);


var arr=[6,9,8];
console.log(arr.sort());


var arr=['T','Z','H']
console.log(arr.reverse());



var arr=['A','B','C','D'];
console.log(arr.splice(2,2));
console.log(arr);



var arr=['我','爱','你']
var arr1=arr.concat(['中','国'])
console.log(arr1);


var arr=['A','B','C']
console.log(arr.join('*'));


var height=185
if(height>=183){
    alert('。。。')//如果height>=183为true，执行if条件
}
else{
    alert('!!!')//否则执行else条件
}


var height = parseFloat(prompt('请输入身高(m):'));
var weight = parseFloat(prompt('请输入体重(kg):'));
var bmi = weight/(height**2)
if(bim<18.5){
    alter('过轻');
}
else if(18.5<=bim<25){
    alter('正常');
}
else if(25<=bim<28){
    alter('过重');
}
else if(28<bim<=32){
    alter('肥胖');
}
else{
    alter('严重肥胖');
}


var a=0;
var b;
for(b=1;b<=100;b++){
    a=a+b;
}
console.log(a);
*/

function max(a, b) {
    if (a > b) {
    return a;
    } else {
    return b;
    }
    
    }
    console.log(max(3,6))